package com.eddie.strategy.improve;


/**
 * @author Eddie
 * @date 2022/08/08 13:46
 **/
public class WildDuck extends Duck {

    /**
     * 构造器，传入FlyBehavior对象
     */
    public WildDuck() {
        this.setFlyBehavior(new GoodFlyBehavior());
    }

    @Override
    public void display() {
        System.out.println("~~~~~野鸭~~~~~");
    }
}
